package com.hsq.db137.demos.controller;

import com.hsq.db137.demos.entity.Rolemenu;
import com.hsq.db137.demos.seriver.RolemenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: hsq加油
 * @CreateTime: 2024/12/25-17:56
 * @Description: TODO
 * @Version: 1.0
 */
@RestController
@CrossOrigin(origins = "*")
public class RolemenuController {
    @Autowired
     RolemenuService rolemenuService;

    /**
     * 新镇角色菜单表
     * @param rolemenu 角色菜单类
     * @return 提示语句
     */
    @PostMapping("insertRolemenu")
    public String insertRolemenu(@RequestBody Rolemenu rolemenu) {
        return rolemenuService.insertRolemenu(rolemenu);
    }
}
